﻿#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

; 按 win+空格，打开网站
#space::Run www.bing.com

; 按 win+n 打开记事本
#n::Run Notepad

; 按 ctrl+alt+c 打开计算器
^!c::Run calc.exe

; 按 win+c 打开记事本和画图
#c::
Run Notepad
; 使用绝对路径和[内置变量](https://ahkcn.github.io/docs/Variables.htm#BuiltIn)
Run %A_WinDir%\System32\mspaint.exe
return

#z::
; RunWait一直到用户关闭记事本后 MsgBox 命令才会继续执行
RunWait Notepad
Msgbox "关闭了Notepad程序！"
return
